<?php

if(!defined('_CONFIG_')) {
define('_CONFIG_', 1);

$itstock_config['incorrect_pass_msg'] = "User or Password Invalid";
$itstock_config['access_denied_msg'] = "You don\'t have permission to access this page.";
$itstock_config['current_user_delete_msg'] = "You can not delete the current user. Please logout and use another account to do it.";
$itstock_config['session_timeout'] = 20 * 60; // 20 minutes

/* Directories */
$itstock_config['css_dir']  = 'css/';
$itstock_config['js_dir']   = 'js/';
$itstock_config['img_dir']  = 'img/';
$itstock_config['base_dir'] = __DIR__;
$itstock_config['data_dir'] = __DIR__ . '/share/';
$itstock_config['lib_dir']      = $itstock_config['data_dir'] . 'lib/';
$itstock_config['include_dir']  = $itstock_config['data_dir'] . 'include/';
$itstock_config['page_dir']     = $itstock_config['data_dir'] . 'pages/';
$itstock_config['struct_dir']   = $itstock_config['data_dir'] . 'structures/';
$itstock_config['menu_dir']     = $itstock_config['data_dir'] . 'menu/';
$itstock_config['server_dir'] = dirname($_SERVER['REQUEST_URI']);

$itstock_config['db_path'] = __DIR__ . '/.htstock_db.php';
$itstock_config['max_rows'] = '30';

$itstock_config['ads_count'] = 15;

foreach ($itstock_config as $key => $value) {
  $var = sprintf('_ITSTOCK_%s_', strtoupper($key));
  define($var, $value);
}

unset($itstock_config);

$DB_ERRORS = array(
  1451 => "Can't remove %s because is being used in other tables.",
  1062 => "Duplicated: %s already exists."
);

include 'adsconfig.inc.php';

}
?>
